package fr.gestproj.exception;

import javax.faces.application.FacesMessage;

/**
 *
 * @author Parrot
 */
public class ExceptionFonctionnelle extends Exception {

    private FacesMessage.Severity severity;

    public ExceptionFonctionnelle() {
    }

    public ExceptionFonctionnelle(FacesMessage.Severity severity, String message) {
        super(message);
        this.severity = severity;
    }

    public ExceptionFonctionnelle(String message) {
        super(message);
    }

    public FacesMessage.Severity getSeverity() {
        return severity;
    }

}
